<template>
    <div class="activity-settings" @click="setHighlight">
        <el-form
            ref="form"
            :model="form"
            :label-width="labelWidthall"
            :rules="rules"
        >
            <el-tabs v-model="activeName" @tab-click="handleClick">
                <el-tab-pane label="基础设置" name="1">
                    <div id="base-set" class="tab-box comm-list" @scroll="onScroll">
                        <div class="module-title">基本选项</div>
                        <el-form-item
							:id="active_act.editActiveTitle"
                            label="活动标题"
                            :class="
                                highlight_i === active_act.editActiveTitle
                                    ? 'highlight'
                                    : ''
                            "
                            prop="title"
                        >
                            <el-input
                                v-model="form.title"
                                class="input-w"
                                placeholder="女人帮,美容养生头疗SPA(朗悦店)豪礼大放送"
                                @focus="inputFocus"
                                @input="sendoutEidt(active_act.editActiveTitle)"
                            >
                                <el-dropdown
                                    slot="suffix"
                                    trigger="click"
                                    @command="setTitleFun"
                                >
                                    <i
                                        class="
                                            el-input__icon
                                            el-icon-arrow-down
                                        "
                                    ></i>
                                    <el-dropdown-menu slot="dropdown">
                                        <el-dropdown-item
                                            v-for="(
                                                item, index
                                            ) in recommend_title"
                                            :key="index"
                                            :command="item"
                                            >{{ item.title1 }}</el-dropdown-item
                                        >
                                    </el-dropdown-menu>
                                </el-dropdown>
                            </el-input>
                        </el-form-item>
                        <el-form-item label="活动详情" :id="'info_txt'"  :class="highlight_i === 'info_txt'  ? 'highlight': ''">
                            <el-form-item>
                                <el-radio v-model="form.info_txt.type" label="1"
                                    >文本说明</el-radio
                                >
                                <el-radio v-model="form.info_txt.type" label="2"
                                    >图文说明
                                    <span
                                        class="set-population"
                                        v-show="form.info_txt.type == 2"
                                        @click="openEventdetails"
                                        >详情设置</span
                                    ></el-radio
                                >
                            </el-form-item>
                            <el-form-item v-show="form.info_txt.type == 1">
                                <el-input
                                    type="textarea"
                                    :autosize="{ minRows: 4, maxRows: 10 }"
                                    placeholder="在秒杀规定的时间内选择产品并支付，支付成功后商家会根据收货地址发货。"
                                    v-model="form.info_txt.txt"
                                >
                                </el-input>
                            </el-form-item>
                        </el-form-item>
                        <el-form-item>
                            <div class="label-title" slot="label">
                                <span class="stars">*</span>
                                <span class="title">商家地址</span>
                            </div>
                            <el-form-item>
                                <el-radio v-model="form.address_type" label="1"
                                    >地图选点
                                    <span
                                        class="set-population"
                                        v-show="form.address_type == 1"
                                        @click="openMapFun"
                                        >设置</span
                                    ></el-radio
                                >

                                <el-radio v-model="form.address_type" label="2"
                                    >自定义</el-radio
                                >
                            </el-form-item>
                            <el-form-item prop="address_cp">
                                <el-input
                                    placeholder="请输入地址"
                                    v-model="form.address_cp"
                                >
                                </el-input>
                            </el-form-item>
                        </el-form-item>
                        <el-form-item label="客服电话" prop="kf_cellphone">
                            <el-input
                                v-model="form.kf_cellphone"
                                placeholder="请输入客服电话"
                                maxlength="11"
                            ></el-input>
                        </el-form-item>
                        <el-form-item label="客服微信">
                            <el-input
                                v-model="form.kf_wx"
                                placeholder="请输入客服微信"
                            ></el-input>
                        </el-form-item>
                        <el-form-item label="客服QQ">
                            <el-input
                                v-model="form.kf_qq"
                                placeholder="请输入客服QQ"
                            ></el-input>
                        </el-form-item>
                        <div class="module-title">参与条件</div>
                        <el-form-item label="参与人数限制" label-width="98px">
                            <el-radio v-model="cyrsxz_radio" label="1"
                                >不限
                            </el-radio>

                            <el-radio v-model="cyrsxz_radio" label="2"
                                >限制<span v-show="cyrsxz_radio == 2"
                                    ><el-input
                                        v-model="form.max_u"
                                        size="mini"
                                        class="inpit-xz"
                                        onkeyup="this.value=this.value.replace(/[^\d]/g,'') "
                                    >
                                    </el-input
                                    >人参与</span
                                ></el-radio
                            >
                            <span class="set-population cha-sl" v-if="false">查看示例</span>
                        </el-form-item>
                        <el-form-item label="可参与地区" label-width="98px">
                            <el-radio v-model="kcydq_radio" label="1"
                                >不限
                            </el-radio>

                            <el-radio v-model="kcydq_radio" label="2"
                                >部分
                                <span
                                    class="set-population"
                                    v-show="kcydq_radio == 2"
                                    @click="openregionFun"
                                    >查看设置</span
                                ></el-radio
                            >
                            <span class="set-population cha-sl" v-if="false">查看示例</span>
                        </el-form-item>

                        <el-form-item
							:id="active_act.editActiveEnterPw"
                            label="活动密码"
                            label-width="98px"
                            :class="
                                highlight_i === active_act.editActiveEnterPw
                                    ? 'highlight'
                                    : ''
                            "
                        >
                            <el-radio v-model="form.pw.isopen" label="2"
                                >关闭
                            </el-radio>

                            <el-radio v-model="form.pw.isopen" label="1"
                                >开启<span
                                    class="set-population"
                                    v-show="form.pw.isopen == 1"
                                    @click="openPasswordFun"
                                    >查看设置</span
                                ></el-radio
                            >
                            <span class="set-population cha-sl"  v-if="false">查看示例</span>
                        </el-form-item>
                        <div class="module-title">高级设置</div>
                        <el-form-item label="轮播下单信息" label-width="98px">
                            <el-radio v-model="form.isshow_od" label="1"
                                >开启
                            </el-radio>

                            <el-radio v-model="form.isshow_od" label="2"
                                >关闭</el-radio
                            >
                        </el-form-item>
                        <!-- <el-form-item
                            label="推广有礼"
                            label-width="98px"
                        >
                            <el-radio v-model="form.tgylradio" label="2"
                                >关闭
                            </el-radio>

                            <el-radio v-model="form.tgylradio" label="1"
                                >开启
                                <span
                                    class="set-population"
                                    v-show="form.tgylradio == 1"
                                    >查看设置</span
                                ></el-radio
                            >
                            <span class="set-population cha-sl" v-if="false">查看示例</span>
                        </el-form-item> -->
                    </div>
                </el-tab-pane>
                <el-tab-pane  label="秒杀设置" name="2">
                    <div id="kill-set" class="tab-box comm-list">
                        <div class="module-title">基本选项</div>
                        <el-form-item :label-width="labelWidth">
                            <div class="label-title" slot="label">
                                <span class="title">支付方式</span>
                                <el-tooltip
                                    class="item"
                                    effect="dark"
                                    content="发布后不可修改; 线下支付，只能上门自取。不可邮寄。"
                                    placement="top"
                                >
                                    <i class="el-icon-question tis-icon"></i>
                                </el-tooltip>
                            </div>
                            <el-form-item>
                                <el-radio v-model="form.paych" label="1"
                                    >线上支付
                                </el-radio>

                                <el-radio v-model="form.paych" label="2"
                                    >线下支付</el-radio
                                >
                            </el-form-item>
                        </el-form-item>
                        <el-form-item
                            label="联系信息"
                            :label-width="labelWidth"
                        >
                            <el-radio
                                v-model="form.touchme.isopen"
                                label="2"
                                class="radio-mr"
                                >关闭</el-radio
                            >
                            <el-radio v-model="form.touchme.isopen" label="1"
                                >开启
                                <span
                                    class="set-population"
                                    v-show="form.touchme.isopen == '1'"
                                    @click="openContactFun"
                                    >查看设置</span
                                ></el-radio
                            >
                        </el-form-item>
                        <el-form-item
                            label="每人限购总量"
                            :label-width="labelWidth"
                        >
                            <el-radio v-model="mrxgzl_radio" label="1"
                                >不限购
                            </el-radio>

                            <el-radio v-model="mrxgzl_radio" label="2"
                                >限购<span
                                    v-show="mrxgzl_radio == 2"
                                    class="txt-xg"
                                    >每人最多可在活动期间购买
                                    <el-input
                                        v-model="form.max_unum"
                                        size="mini"
                                        class="inpit-xz"
                                        onkeyup="this.value=this.value.replace(/[^\d]/g,'') "
                                    >
                                    </el-input
                                    >件产品</span
                                ></el-radio
                            >
                        </el-form-item>
                        <el-form-item
                            label="支付时间"
                            :label-width="labelWidth"
                        >
                            <el-radio v-model="zfsj_radio" label="1"
                                >不限
                            </el-radio>

                            <el-radio v-model="zfsj_radio" label="2"
                                >限制<span
                                    v-show="zfsj_radio == 2"
                                    class="txt-xg"
                                    >下单后需要在
                                    <el-input
                                        v-model="zfsjxs_input"
                                        size="mini"
                                        class="inpit-xz"
                                        onkeyup="this.value=this.value.replace(/[^\d]/g,'') "
                                    >
                                    </el-input
                                    >小时<el-input
                                        v-model="zfsjfz_input"
                                        size="mini"
                                        class="inpit-xz"
                                        onkeyup="this.value=this.value.replace(/[^\d]/g,'') "
                                    >
                                    </el-input
                                    >分钟</span
                                ></el-radio
                            >
                        </el-form-item>
                        <el-form-item
							:id="'info_time'"
                            label="秒杀场次"
                            :label-width="labelWidth"
							:class="highlight_i === 'info_time' ? 'highlight': ''"
                        >
                            <el-select
                                v-model="msccselect"
                                class="select-w"
                                @change="setMscclist"
                            >
                                <el-option
                                    v-for="item in seckillOptions"
                                    :key="item"
                                    :label="item"
                                    :value="item"
                                >
                                </el-option>
                            </el-select>
                            <el-form-item>
                                <div
                                    class="sessions-row"
                                    v-for="(item, index) in form.chp_ls"
                                    :key="index"
                                >
                                    <div class="sessions-title">
                                        <span
                                            >{{ item.title }}（{{
                                                setLetter(index)
                                            }}）</span
                                        >
                                        <span
                                            class="status"
                                            :class="
                                                item.status == 0 ? 'acitve' : ''
                                            "
                                            >{{ item.status_txt }}
                                        </span>
                                    </div>
                                    <div class="sessions-info">
                                        <!-- <div class="date-box">
                                            <el-date-picker
                                                v-model="item.stime"
                                                type="datetime"
                                                placeholder="开始时间"
                                            >
                                            </el-date-picker>
                                            <span class="text-lr">至</span>
                                            <el-date-picker
                                                v-model="item.etime"
                                                type="datetime"
                                                placeholder="结束时间"
                                            >
                                            </el-date-picker>
                                        </div> -->
                                        <div class="date-box">
                                            <div  class="block">
                                                <el-date-picker
                                                    style="width: 100%"
                                                    v-model="item.timeArr"
                                                    type="datetimerange"
                                                    start-placeholder="开始日期"
                                                    range-separator="至"
                                                    end-placeholder="结束日期"
                                                    @change="timestampFun(item.timeArr,index)"
                                                >
                                                </el-date-picker>
                                            </div>
                                        </div>
                                        <div class="good-box">
                                            <div
                                                class="good-row"
                                                v-for="(
                                                    items, indexs
                                                ) in item.gd_list"
                                                :key="indexs"
                                            >
                                                {{ items.gd_title }}
                                            </div>
                                        </div>
                                        <div class="but-good-box">
                                            <el-popover
                                                placement="bottom"
                                                trigger="click"
                                                popper-class="popper-good-box"
                                                v-model="item.visible"
                                            >
                                                <div class="popover-title">
                                                    <span
                                                        >{{ item.title }}（{{
                                                            setLetter(index)
                                                        }}）</span
                                                    >
                                                </div>
                                                <div class="popover-good-box">
                                                    <el-checkbox-group
                                                        v-model="good_checkList"
                                                        @change="good_checkFun"
                                                    >
                                                        <el-checkbox
                                                            v-for="(
                                                                good_item,
                                                                good_index
                                                            ) in form.gd_ls"
                                                            :key="good_index"
                                                            :label="
                                                                good_item.gd_pos
                                                            "
                                                            >{{
                                                                good_item.gd_title
                                                            }}</el-checkbox
                                                        >
                                                    </el-checkbox-group>
                                                </div>
                                                <div class="popover-but">
                                                    <el-button
                                                        size="small"
                                                        type="primary"
                                                        @click="
                                                            setSessionsgoodNum(
                                                                item,good_checkList
                                                            )
                                                        "
                                                        >确定</el-button
                                                    >
                                                    <el-button
                                                        size="small"
                                                        @click="
                                                            item.visible = false
                                                        "
                                                        >取消</el-button
                                                    >
                                                </div>
                                                <el-button
                                                    size="small"
                                                    slot="reference"
                                                    @click="
                                                        openModifygood(
                                                            item.gd_list
                                                        )
                                                    "
                                                    >修改产品</el-button
                                                >
                                            </el-popover>
                                        </div>
                                    </div>
                                </div>
                            </el-form-item>
                        </el-form-item>
                    </div>
                </el-tab-pane>
                <el-tab-pane  label="产品设置" name="3">
                    <div id="goods-set" class="tab-box good-tab-box comm-list">
                        <div class="good-add-box">
                            <el-button
                                icon="el-icon-minus"
                                type="primary"
                                size="mini"
                                @click="setgoodList(2)"
                            ></el-button>
                            <el-button
                                icon="el-icon-plus"
                                type="primary"
                                size="mini"
                                @click="setgoodList(1)"
                            ></el-button>
                        </div>
                        <el-tabs
                            v-model="gdactiveName"
                            type="card"
                            @tab-click="handlegoodClick">
                            <el-tab-pane
                                v-for="(item, index) in form.gd_ls"
                                :label="item.gd_title"
                                :key="item.gd_pos"
                                :name="item.gd_pos"
                            >
                                <el-form
                                    label-width="100px"
                                    ref="itemForm"
                                    :model="item"
                                    :rules="rules"
                                >
                                    <div class="module-title">
                                        基本选项 • {{ item.gd_title }}
                                    </div>
                                    <el-form-item
										:id="goods_act.editGoodsTitle"
                                        label="产品名称"
                                        prop="gd_name"
                                        :class="
                                            highlight_i ===
                                            goods_act.editGoodsTitle
                                                ? 'highlight'
                                                : ''
                                        "
                                    >
                                        <el-input
                                            v-model="item.gd_name"
                                            placeholder="请输入产品名称"
											@input="inputGdInfo({act:active_act.editGoodsTitle,data:item})"
                                        >
                                        </el-input>
                                    </el-form-item>
                                    <el-form-item
										:id="goods_act.editGoodsQty"
                                        label="产品库存"
                                        prop="qty"
                                        :class="
                                            highlight_i ===
                                            goods_act.editGoodsQty
                                                ? 'highlight'
                                                : ''
                                        "
                                    >
                                        <el-input
                                            v-model="item.qty"
                                            placeholder="请输入产品库存"
											@input="inputGdInfo({act:active_act.editGoodsTitle,data:item})"
                                        >
                                        </el-input>
                                    </el-form-item>
                                    <el-form-item
										:id="goods_act.editGoodsPrice0"
                                        prop="price0"
                                        class="hide-required"
                                        :class="
                                            highlight_i ===
                                            goods_act.editGoodsPrice0
                                                ? 'highlight'
                                                : ''
                                        "
                                    >
                                        <div class="label-title" slot="label">
                                            <span class="stars">*</span>
                                            <span class="title">产品价格</span>
                                            <el-tooltip
                                                class="item"
                                                effect="dark"
                                                content="发布后不可修改"
                                                placement="top"
                                            >
                                                <i
                                                    class="
                                                        el-icon-question
                                                        tis-icon
                                                    "
                                                ></i>
                                            </el-tooltip>
                                        </div>
                                        <el-input
                                            v-model="item.price0"
                                            placeholder="请输入产品价格"
											@input="inputGdInfo({act:active_act.editGoodsTitle,data:item})"
                                        >
                                        </el-input>
                                    </el-form-item>
                                    <el-form-item
										:id="goods_act.editGoodsPrice"
                                        prop="price"
                                        class="hide-required"
                                        :class="
                                            highlight_i ===
                                            goods_act.editGoodsPrice
                                                ? 'highlight'
                                                : ''
                                        "
                                    >
                                        <div class="label-title" slot="label">
                                            <span class="stars">*</span>
                                            <span class="title">秒杀价格</span>
                                            <el-tooltip
                                                class="item"
                                                effect="dark"
                                                content="发布后不可修改"
                                                placement="top"
                                            >
                                                <i
                                                    class="
                                                        el-icon-question
                                                        tis-icon
                                                    "
                                                ></i>
                                            </el-tooltip>
                                        </div>
                                        <el-input
                                            v-model="item.price"
                                            placeholder="请输入秒杀价格"
											@input="inputGdInfo({act:active_act.editGoodsTitle,data:item})"
                                        >
                                        </el-input>
                                    </el-form-item>
                                    <el-form-item
                                        prop="mscccheckbox"
                                        class="hide-required"
                                    >
                                        <div class="label-title" slot="label">
                                            <span class="stars">*</span>
                                            <span class="title">秒杀场次</span>
                                            <el-tooltip
                                                class="item"
                                                effect="dark"
                                                content="发布后不可修改"
                                                placement="top"
                                            >
                                                <i
                                                    class="
                                                        el-icon-question
                                                        tis-icon
                                                    "
                                                ></i>
                                            </el-tooltip>
                                        </div>
                                        <el-checkbox-group
                                            v-model="item.mscccheckbox"
                                        >
                                            <el-checkbox
                                                v-for="(
                                                    sessions_item,
                                                    sessions_index
                                                ) in form.chp_ls"
                                                @change="
                                                    setSessionsgood(
                                                        $event,
                                                        sessions_item,
                                                        item
                                                    )
                                                "
                                                :key="sessions_index"
                                                :label="sessions_item.chpno"
                                                >{{
                                                    sessions_item.title
                                                }}</el-checkbox
                                            >
                                        </el-checkbox-group>
                                        <div class="tis">
                                            选择后该产品将会出现在相应秒杀场次
                                        </div>
                                    </el-form-item>
                                    <el-form-item
										:id="goods_act.editGoodsLimitBuy"
                                        label="每人限购"
                                        :class="
                                            highlight_i ===
                                            goods_act.editGoodsLimitBuy
                                                ? 'highlight'
                                                : ''
                                        "
                                    >
                                        <el-radio
                                            v-model="item.mrxgradio"
                                            :label="1"
                                            >关闭
                                        </el-radio>

                                        <el-radio
                                            v-model="item.mrxgradio"
                                            :label="2"
                                            >开启<span
                                                v-show="item.mrxgradio == 2"
                                                class="txt-xg"
                                                >每人最多可购买
                                                <el-input
                                                    v-model="item.max_unum"
                                                    size="mini"
                                                    class="inpit-xz"
                                                    onkeyup="this.value=this.value.replace(/[^\d]/g,'') "
													@input="inputGdInfo({act:active_act.editGoodsTitle,data:item})"
                                                >
                                                </el-input
                                                >件</span
                                            ></el-radio
                                        >
                                    </el-form-item>
                                    <el-form-item
                                        label="配送方式"
                                        prop="shipp_name"
                                    >
                                        <el-input
                                            v-model="item.shipp_name"
                                            placeholder="请输入配送方式"
                                        >
                                        </el-input>
                                    </el-form-item>

                                    <el-form-item label="订单说明">
                                        <el-input
                                            type="textarea"
                                            :autosize="{
                                                minRows: 4,
                                                maxRows: 10,
                                            }"
                                            placeholder="请输入订单说明"
                                            v-model="item.set_gd_init.txt_gd"
                                        >
                                        </el-input>
                                    </el-form-item>
                                    <el-form-item
										:id="goods_act.editGoodsDesc"
                                        label="产品介绍"
                                        :class="
                                            highlight_i ===
                                            goods_act.editGoodsDesc
                                                ? 'highlight'
                                                : ''
                                        "
                                    >
                                        <span
                                            class="set-population"
                                            @click="
                                                opengoodEventdetails(item.info)
                                            "
                                            >详情设置</span
                                        >
                                    </el-form-item>
                                    <div class="module-title">
                                        兑换选项 • {{ item.gd_title }}
                                    </div>
                                    <el-form-item class="hide-required">
                                        <div class="label-title" slot="label">
                                            <span class="stars">*</span>
                                            <span class="title">兑换方式</span>
                                            <el-tooltip
                                                class="item"
                                                effect="dark"
                                                content="发布后不可修改"
                                                placement="top"
                                            >
                                                <i
                                                    class="
                                                        el-icon-question
                                                        tis-icon
                                                    "
                                                ></i>
                                            </el-tooltip>
                                        </div>
                                        <!-- <el-radio
                                            v-model="item.onoff_line"
                                            label="1"
                                            >线下配送
                                        </el-radio> -->
                                        <el-form-item>
                                            <el-checkbox-group
                                                v-model="
                                                    item.set_gd_init
                                                        .onoff_line_1.shipp_type
                                                "
                                                @change="
                                                    shippTypeChe($event, item)
                                                "
                                            >
                                                <el-checkbox
                                                    label="1"
                                                    :style="
                                                        item.set_gd_init
                                                            .onoff_line_1
                                                            .shipp_type
                                                            .length == 1 &&
                                                        item.set_gd_init.onoff_line_1.shipp_type.indexOf(
                                                            '1'
                                                        ) > -1
                                                            ? 'pointer-events: none;'
                                                            : ''
                                                    "
                                                    >上门自取</el-checkbox
                                                >
                                                <el-checkbox
                                                    label="2"
                                                    :disabled="form.paych == 2"
                                                    :style="
                                                        item.set_gd_init
                                                            .onoff_line_1
                                                            .shipp_type
                                                            .length == 1 &&
                                                        item.set_gd_init.onoff_line_1.shipp_type.indexOf(
                                                            '2'
                                                        ) > -1
                                                            ? 'pointer-events: none;'
                                                            : ''
                                                    "
                                                    >邮寄</el-checkbox
                                                >
                                                <span
                                                    class="tis-shipp"
                                                    v-show="form.paych == 2"
                                                    >(线下支付不支持邮寄)</span
                                                >
                                            </el-checkbox-group>
                                        </el-form-item>
                                    </el-form-item>
                                    <div
                                        v-show="
                                            item.set_gd_init.onoff_line_1.shipp_type.indexOf(
                                                '1'
                                            ) > -1
                                        "
                                    >
                                        <el-form-item :id="active_act.editGoodsChangeAdress"
											class="hide-required" :class="highlight_i === active_act.editGoodsChangeAdress ? 'highlight': ''">
                                            <div
                                                class="label-title"
                                                slot="label"
                                            >
                                                <span class="stars">*</span>
                                                <span class="title"
                                                    >取货地址</span
                                                >
                                                <el-tooltip
                                                    class="item"
                                                    effect="dark"
                                                    content="发布后不可修改"
                                                    placement="top"
                                                >
                                                    <i
                                                        class="
                                                            el-icon-question
                                                            tis-icon
                                                        "
                                                    ></i>
                                                </el-tooltip>
                                            </div>
                                            <el-radio
                                                v-model="
                                                    item.set_gd_init
                                                        .onoff_line_1.address_cp
                                                        .type
                                                "
                                                label="1"
												@change="updateGdInfo()"
                                                >商家地址
                                            </el-radio>
                                            <el-radio
                                                v-model="
                                                    item.set_gd_init
                                                        .onoff_line_1.address_cp
                                                        .type
                                                "
                                                label="2"
												@change="updateGdInfo()"
                                                >自定义
                                            </el-radio>
                                            <el-form-item
                                                v-show="
                                                    item.set_gd_init
                                                        .onoff_line_1.address_cp
                                                        .type == 1
                                                "
                                            >
                                                <span class="ass-txt">{{
                                                    item.set_gd_init
                                                        .onoff_line_1
                                                        .shop_address
                                                }}</span>
                                            </el-form-item>
                                            <el-form-item
                                                prop="address_long"
                                                v-if="
                                                    item.set_gd_init
                                                        .onoff_line_1.address_cp
                                                        .type == 2
                                                "
                                            >
                                                <el-input
                                                    v-model="item.address_long"
                                                    placeholder="请输入取货地址"
													@input="updateGdInfo()"
                                                >
                                                </el-input>
                                            </el-form-item>
                                        </el-form-item>
                                        <el-form-item
											:id="active_act.editGoodsCouponsChange"
                                            label="操作提示"
                                            prop="tips"
											:class="highlight_i === active_act.editGoodsCouponsChange ? 'highlight': ''">
                                            <el-input
                                                v-model="item.tips"
                                                placeholder="请输入操作提示"
												@input="updateTips(item,item.tips)"
                                            >
                                            </el-input>
                                        </el-form-item>
                                        <el-form-item 
											:id="active_act.editGoodsChangeDate"
											label="兑换期限"  
											:class="highlight_i === active_act.editGoodsChangeDate ? 'highlight': ''">
                                            <el-radio
                                                v-model="
                                                    item.set_gd_init
                                                        .onoff_line_1.outday_ch
                                                        .type
                                                "
                                                label="1"
                                                >固定日期
                                            </el-radio>
                                            <el-radio
                                                v-model="
                                                    item.set_gd_init
                                                        .onoff_line_1.outday_ch
                                                        .type
                                                "
                                                label="2"
                                                >固定时长
                                            </el-radio>
                                            <el-form-item
                                                v-show="
                                                    item.set_gd_init
                                                        .onoff_line_1.outday_ch
                                                        .type == 1
                                                "
                                            >
                                                <el-date-picker
                                                    v-model="
                                                        item.set_gd_init
                                                            .onoff_line_1
                                                            .outday_ch.time_from
                                                    "
                                                    type="datetime"
                                                    placeholder="开始时间"
													@change="updateStartTime(item,0)"
                                                >
                                                </el-date-picker>
                                                <span class="text-lr">至</span>
                                                <el-date-picker
                                                    v-model="
                                                        item.set_gd_init
                                                            .onoff_line_1
                                                            .outday_ch.time_to
                                                    "
                                                    type="datetime"
                                                    placeholder="结束时间"
													@change="updateStartTime(item,1)"
                                                >
                                                </el-date-picker>
                                            </el-form-item>
                                            <el-form-item
                                                v-show="
                                                    item.set_gd_init
                                                        .onoff_line_1.outday_ch
                                                        .type == 2
                                                "
                                            >
                                                <span
                                                    >领取后
                                                    <el-input
                                                        v-model="
                                                            item.set_gd_init
                                                                .onoff_line_1
                                                                .outday_ch
                                                                .days_from
                                                        "
                                                        size="mini"
                                                        class="inpit-xz"
                                                        onkeyup="this.value=this.value.replace(/[^\d]/g,'') "
                                                    >
                                                    </el-input
                                                    >天生效，有效天数<el-input
                                                        v-model="
                                                            item.set_gd_init
                                                                .onoff_line_1
                                                                .outday_ch.days
                                                        "
                                                        size="mini"
                                                        class="inpit-xz"
                                                        onkeyup="this.value=this.value.replace(/[^\d]/g,'') "
                                                    >
                                                    </el-input
                                                    >天</span
                                                >
                                            </el-form-item>
                                        </el-form-item>
                                        <div class="module-title">
                                            高级选项 • {{ item.gd_title }}
                                        </div>
                                        <el-form-item 
											:id="active_act.editGoodsCouponsUseTime"
											label="可用时段" 
											:class="highlight_i === active_act.editGoodsCouponsUseTime ? 'highlight': ''">
                                            <el-radio
                                                v-model="
                                                    item.set_gd_init
                                                        .onoff_line_1.week_use
                                                        .type
                                                "
                                                label="1"
												@change="updateGdInfo()"
                                                >全部时段</el-radio
                                            >
                                            <el-radio
                                                v-model="
                                                    item.set_gd_init
                                                        .onoff_line_1.week_use
                                                        .type
                                                "
                                                label="2"
												@change="updateGdInfo()"
                                                >部分时段</el-radio
                                            >
                                            <el-form-item
                                                v-show="
                                                    item.set_gd_init
                                                        .onoff_line_1.week_use
                                                        .type == 2
                                                "
                                            >
                                                <el-checkbox-group
                                                    v-model="
                                                        item.set_gd_init
                                                            .onoff_line_1
                                                            .week_use.week
                                                    "
                                                >
                                                    <el-checkbox
                                                        v-for="(
                                                            week_item,
                                                            week_index
                                                        ) in weekData"
                                                        :key="week_index"
                                                        :label="week_item.id"
														@change="updateGdInfo()"
                                                        >{{
                                                            week_item.name
                                                        }}</el-checkbox
                                                    >
                                                </el-checkbox-group>
                                            </el-form-item>
                                        </el-form-item>
                                        <el-form-item 
											:id="active_act.editKnowMore"
											label="自定义按钮" 
											:class="highlight_i === active_act.editKnowMore || highlight_i === goods_act.editGoodsFlowBtnContext  ? 'highlight': ''">
                                            <el-radio
                                                v-model="
                                                    item.set_gd_init
                                                        .onoff_line_1.bttn.type
                                                "
                                                label="0"
												@change="inputGdInfo({act:active_act.editGoodsTitle,data:item})"
                                                >关闭</el-radio
                                            >
                                            <el-radio
                                                v-model="
                                                    item.set_gd_init
                                                        .onoff_line_1.bttn.type
                                                "
                                                label="1"
												@change="inputGdInfo({act:active_act.editGoodsTitle,data:item})"
                                                >页面跳转</el-radio
                                            >
                                            <el-radio
                                                v-model="
                                                    item.set_gd_init
                                                        .onoff_line_1.bttn.type
                                                "
                                                label="2"
												@change="inputGdInfo({act:active_act.editGoodsTitle,data:item})"
                                                >一键关注</el-radio
                                            >
                                        </el-form-item>

                                        <div
                                            v-show="
                                                item.set_gd_init.onoff_line_1
                                                    .bttn.type == 1
                                            "
                                        >
                                            <el-form-item label="按钮名称">
                                                <el-input
                                                    v-model="
                                                        item.set_gd_init
                                                            .onoff_line_1.bttn
                                                            .type_1.bttname
                                                    "
                                                    placeholder="请输入按钮名称"
                                                >
                                                </el-input>
                                            </el-form-item>
                                            <el-form-item label="跳转方式">
                                                <el-radio
                                                    v-model="
                                                        item.set_gd_init
                                                            .onoff_line_1.bttn
                                                            .type_1.typeto
                                                    "
                                                    label="1"
                                                    >链接跳转</el-radio
                                                >
                                                <el-radio
                                                    v-model="
                                                        item.set_gd_init
                                                            .onoff_line_1.bttn
                                                            .type_1.typeto
                                                    "
                                                    label="2"
                                                    >小程序跳转</el-radio
                                                >
                                            </el-form-item>
                                            <el-form-item
                                                label="按钮链接"
                                                v-show="
                                                    item.set_gd_init
                                                        .onoff_line_1.bttn
                                                        .type_1.typeto == 1
                                                "
                                            >
                                                <el-input
                                                    v-model="
                                                        item.set_gd_init
                                                            .onoff_line_1.bttn
                                                            .type_1.type_1.link
                                                    "
                                                    placeholder="请输入按钮连接"
                                                >
                                                </el-input>
                                            </el-form-item>
                                            <el-form-item
                                                label="页面路径"
                                                v-show="
                                                    item.set_gd_init
                                                        .onoff_line_1.bttn
                                                        .type_1.typeto == 2
                                                "
                                            >
                                                <el-select
                                                    v-model="
                                                        item.set_gd_init
                                                            .onoff_line_1.bttn
                                                            .type_1.type_2.link
                                                    "
                                                    placeholder="请选择页面路径"
                                                >
                                                    <el-option
                                                        v-for="item in appletpath_data"
                                                        :key="item"
                                                        :label="item"
                                                        :value="item"
                                                    >
                                                    </el-option>
                                                </el-select>
                                            </el-form-item>
                                        </div>
                                        <div
                                            v-show="
                                                item.set_gd_init.onoff_line_1
                                                    .bttn.type == 2
                                            "
                                        >
                                            <el-form-item label="按钮名称">
                                                <el-input
                                                    v-model="
                                                        item.set_gd_init
                                                            .onoff_line_1.bttn
                                                            .type_2.bttname
                                                    "
                                                    placeholder="请输入按钮名称"
													@input="inputGdInfo({act:active_act.editGoodsTitle,data:item})"
                                                >
                                                </el-input>
                                            </el-form-item>
                                            <el-form-item label="跳转方式">
                                                <el-radio
                                                    v-model="
                                                        item.set_gd_init
                                                            .onoff_line_1.bttn
                                                            .type_2.typeto
                                                    "
                                                    label="1"
                                                    >微信二维码</el-radio
                                                >
                                                <el-radio
                                                    v-model="
                                                        item.set_gd_init
                                                            .onoff_line_1.bttn
                                                            .type_2.typeto
                                                    "
                                                    label="2"
                                                    >小程序二维码</el-radio
                                                >
                                            </el-form-item>
                                            <el-form-item
                                                :label="
                                                    item.set_gd_init
                                                        .onoff_line_1.bttn
                                                        .type_2.typeto == 1
                                                        ? '微信二维码'
                                                        : '小程序二维码'
                                                "
                                            >
                                                <div class="img-context">
                                                    <div class="img-box">
                                                        <addPhoto
                                                            ref="AddPhoto"
                                                            :pList="
                                                                item.set_gd_init
                                                                    .onoff_line_1
                                                                    .bttn.type_2
                                                                    .typeto == 1
                                                                    ? item
                                                                          .set_gd_init
                                                                          .onoff_line_1
                                                                          .bttn
                                                                          .type_2
                                                                          .qrcode1
                                                                    : item
                                                                          .set_gd_init
                                                                          .onoff_line_1
                                                                          .bttn
                                                                          .type_2
                                                                          .qrcode2
                                                            "
                                                            :batchid="index"
                                                            :idyun="idyun"
                                                            :activeId="activeId"
                                                            actType="5"
                                                            @uploadAavatar="
                                                                uploadAavatar
                                                            "
                                                        ></addPhoto>
                                                    </div>
                                                    <div class="img-but">
                                                        <div class="but">
                                                            <el-button
                                                                type="primary"
                                                                size="mini"
                                                                icon="el-icon-plus"
                                                                @click="
                                                                    replaceImg(
                                                                        item
                                                                            .set_gd_init
                                                                            .onoff_line_1
                                                                            .bttn
                                                                            .type_2
                                                                            .typeto ==
                                                                            1
                                                                            ? item
                                                                                  .set_gd_init
                                                                                  .onoff_line_1
                                                                                  .bttn
                                                                                  .type_2
                                                                                  .qrcode1[0]
                                                                                  .url
                                                                            : item
                                                                                  .set_gd_init
                                                                                  .onoff_line_1
                                                                                  .bttn
                                                                                  .type_2
                                                                                  .qrcode2[0]
                                                                                  .url,
                                                                        index
                                                                    )
                                                                "
                                                                >上传二维码</el-button
                                                            >
                                                        </div>
                                                    </div>
                                                </div>
                                            </el-form-item>
                                        </div>
                                        <el-form-item 
											:id="active_act.editGoodsTitle1"
											label="副标题"   :class="highlight_i === active_act.editGoodsTitle1 ? 'highlight': ''">
                                            <el-input
                                                v-model="
                                                    item.set_gd_init
                                                        .onoff_line_1.gdname0
                                                "
                                                placeholder="请输入副标题"
												@input="updateGdInfo()"
                                          >
                                            </el-input>
                                        </el-form-item>
                                        <el-form-item :id="active_act.editSeviceCellphone" label="客服电话" :class="highlight_i === active_act.editSeviceCellphone ? 'highlight': ''">
                                            <el-input
                                                v-model="
                                                    item.set_gd_init
                                                        .onoff_line_1.phone_kf
                                                "
                                                placeholder="请输入客服电话"
                                                maxlength="11"
												@input="updateGdInfo()"
                                            >
                                            </el-input>
                                        </el-form-item>
                                        <el-form-item :id="active_act.editGoodsChangeMustKnow" label="兑换须知" :class="highlight_i === active_act.editGoodsChangeMustKnow ? 'highlight': ''">
                                            <el-input
                                                type="textarea"
                                                :autosize="{
                                                    minRows: 4,
                                                    maxRows: 10,
                                                }"
                                                placeholder="请输入兑换须知"
                                                v-model="
                                                    item.set_gd_init
                                                        .onoff_line_1.txt_ch
                                                "
												@input="updateGdInfo()"
                                            >
                                            </el-input>
                                        </el-form-item>
                                        <el-form-item :id="active_act.editMakeCompanyDesc" label="主办单位介绍" :class="highlight_i === active_act.editMakeCompanyDesc ? 'highlight': ''">
                                            <el-radio
                                                v-model="
                                                    item.set_gd_init
                                                        .onoff_line_1.iscpname
                                                "
                                                label="2"
                                                >关闭</el-radio
                                            >
                                            <el-radio
                                                v-model="
                                                    item.set_gd_init
                                                        .onoff_line_1.iscpname
                                                "
                                                label="1"
                                                >开启</el-radio
                                            >
                                        </el-form-item>
                                    </div>
                                </el-form>
                            </el-tab-pane>
                        </el-tabs>
                    </div>
                </el-tab-pane>
                <el-tab-pane  label="高级设置" name="4">
                    <div id="adv-set" class="tab-box comm-list">
                        <div class="module-title">企业信息</div>
                        <el-form-item
							:id="'info_cpname'"
                            label="主办单位"
                            :label-width="labelWidth"
							:class="highlight_i === 'info_cpname'  ? 'highlight': ''"
                        >
                            <span>{{ form.cpname }}</span>
                            <span class="set-population" @click="openOrganizer"
                                >编辑</span
                            >
                        </el-form-item>
                        <el-form-item
							:id="'info_cpname2'"
                            label="协办单位"
                            :label-width="labelWidth"
							:class="highlight_i === 'info_cpname2'  ? 'highlight': ''"
                        >
                            <el-radio v-model="form.iscpname2" label="2" @change="setMoreData()"
                                >关闭
                            </el-radio>

                            <el-radio v-model="form.iscpname2" label="1" @change="setMoreData()"
                                >开启</el-radio
                            >
                            <el-form-item v-show="form.iscpname2 == 1">
                                <el-input
                                    v-model="form.cpname2"
                                    class="input-w"
                                    placeholder="请输入协办单位"
									@input="setMoreData()"
                                >
                                </el-input>
                            </el-form-item>
                        </el-form-item>
                        <el-form-item
							:id="active_act.adverPagePic"
                            label="首屏广告"
                            :label-width="labelWidth"
                            :class="
                                highlight_i === active_act.adverPagePic ||
                                highlight_i === active_act.adverPageJumpTime
                                    ? 'highlight'
                                    : ''
                            "
                        >
                            <el-radio v-model="form.isad" label="2"
                                >隐藏
                            </el-radio>

                            <el-radio v-model="form.isad" label="1"
                                >开启
                                <span
                                    class="set-population"
                                    v-show="form.isad == 1"
                                    @click="is_drawer_ad = true"
                                    >查看设置</span
                                ></el-radio
                            >
                            <span class="set-population cha-sl" v-if="false">查看示例</span>
                        </el-form-item>
                        <el-form-item
							:id="active_act.editCpLogo"
                            label="企业logo"
                            :label-width="labelWidth"
                            :class="
                                highlight_i === active_act.editCpLogo
                                    ? 'highlight'
                                    : ''
                            "
                        >
                            <el-radio v-model="qylogoradio" label="1"
                                >隐藏
                            </el-radio>

                            <el-radio v-model="qylogoradio" label="2"
                                >显示
                            </el-radio>
                            <el-form-item v-show="qylogoradio == 2">
                                <div class="img-context gj-box">
                                    <div class="img-box">
                                        <addPhoto
                                            ref="AddPhotoLogo"
                                            :pList="form.logo"
                                            :batchid="'enterprise_logo'"
                                            :idyun="idyun"
                                            :activeId="activeId"
                                            actType="5"
                                            @uploadAavatar="uploadAavatar"
                                        ></addPhoto>
                                    </div>
                                    <div class="img-but">
                                        <div class="but">
                                            <el-button
                                                type="primary"
                                                size="mini"
                                                icon="el-icon-plus"
                                                @click="
                                                    replaceImg(
                                                        form.logo[0].url,
                                                        'enterprise_logo'
                                                    )
                                                "
                                                >上传替换</el-button
                                            >
                                        </div>
                                        <div class="tis">
                                            请上传jpg, bmp, png, gif格式的图片
                                        </div>
                                    </div>
                                </div>
                            </el-form-item>
                        </el-form-item>
                        <div
							:id="active_act.editFlowBtnContext"
                            :class="
                                highlight_i === active_act.editFlowBtnContext
                                    ? 'highlight'
                                    : ''
                            "
                        >
                            <el-form-item
								:id="goods_act.editGoodsFlowBtnContext"
                                label="功能按钮"
                                :label-width="labelWidth"
                                :class="
                                    highlight_i === goods_act.editGoodsFlowBtnContext
                                        ? 'highlight'
                                        : ''
                                ">
                                <el-radio
                                    v-model="form.set_advc.bttn_main.type"
                                    label="0"
									@change="
									    sendoutEidt(
									        active_act.editFlowBtnContext
									    )
									"
                                    >隐藏</el-radio
                                >
                                <el-radio
                                    v-model="form.set_advc.bttn_main.type"
                                    label="1"
                                    @change="
                                        sendoutEidt(
                                            active_act.editFlowBtnContext
                                        )
                                    "
                                    >页面跳转</el-radio
                                >
                                <el-radio
                                    v-model="form.set_advc.bttn_main.type"
                                    label="2"
                                    @change="
                                        sendoutEidt(
                                            active_act.editFlowBtnContext
                                        )
                                    "
                                    >一键关注</el-radio
                                >
                            </el-form-item>

                            <div v-show="form.set_advc.bttn_main.type == 1">
                                <el-form-item
                                    label="按钮名称"
                                    :label-width="labelWidth"
                                >
                                    <el-input
                                        v-model="
                                            form.set_advc.bttn_main.type_1
                                                .bttname
                                        "
                                        placeholder="请输入按钮名称"
                                        @input="
                                            sendoutEidt(
                                                active_act.editFlowBtnContext
                                            )
                                        "
                                    >
                                    </el-input>
                                </el-form-item>
                                <el-form-item
                                    label="跳转方式"
                                    :label-width="labelWidth"
                                >
                                    <el-radio
                                        v-model="
                                            form.set_advc.bttn_main.type_1
                                                .typeto
                                        "
                                        label="1"
                                        >链接跳转</el-radio
                                    >
                                    <el-radio
                                        v-model="
                                            form.set_advc.bttn_main.type_1
                                                .typeto
                                        "
                                        label="2"
                                        >小程序跳转</el-radio
                                    >
                                </el-form-item>
                                <el-form-item
                                    label="按钮链接"
                                    v-show="
                                        form.set_advc.bttn_main.type_1.typeto ==
                                        1
                                    "
                                    :label-width="labelWidth"
                                >
                                    <el-input
                                        v-model="
                                            form.set_advc.bttn_main.type_1
                                                .type_1.link
                                        "
                                        placeholder="请输入按钮连接"
                                    >
                                    </el-input>
                                </el-form-item>
                                <el-form-item
                                    label="页面路径"
                                    v-show="
                                        form.set_advc.bttn_main.type_1.typeto ==
                                        2
                                    "
                                    :label-width="labelWidth"
                                >
                                    <el-select
                                        v-model="
                                            form.set_advc.bttn_main.type_1
                                                .type_2.link
                                        "
                                        placeholder="请选择页面路径"
                                    >
                                        <el-option
                                            v-for="item in appletpath_data"
                                            :key="item"
                                            :label="item"
                                            :value="item"
                                        >
                                        </el-option>
                                    </el-select>
                                </el-form-item>
                            </div>
                            <div v-show="form.set_advc.bttn_main.type == 2">
                                <el-form-item
                                    label="按钮名称"
                                    :label-width="labelWidth"
                                >
                                    <el-input
                                        v-model="
                                            form.set_advc.bttn_main.type_2
                                                .bttname
                                        "
                                        placeholder="请输入按钮名称"
                                        @input="
                                            sendoutEidt(
                                                active_act.editFlowBtnContext
                                            )
                                        "
                                    >
                                    </el-input>
                                </el-form-item>
                                <el-form-item
                                    label="跳转方式"
                                    :label-width="labelWidth"
                                >
                                    <el-radio
                                        v-model="
                                            form.set_advc.bttn_main.type_2
                                                .typeto
                                        "
                                        label="1"
                                        >微信二维码</el-radio
                                    >
                                    <el-radio
                                        v-model="
                                            form.set_advc.bttn_main.type_2
                                                .typeto
                                        "
                                        label="2"
                                        >小程序二维码</el-radio
                                    >
                                </el-form-item>
                                <el-form-item
                                    :label-width="labelWidth"
                                    :label="
                                        form.set_advc.bttn_main.type_2.typeto ==
                                        1
                                            ? '微信二维码'
                                            : '小程序二维码'
                                    "
                                >
                                    <div class="img-context">
                                        <div class="img-box">
                                            <addPhoto
                                                ref="AddPhotoFollowqr"
                                                :pList="
                                                    form.set_advc.bttn_main
                                                        .type_2.typeto == 1
                                                        ? form.set_advc
                                                              .bttn_main.type_2
                                                              .qrcode1
                                                        : form.set_advc
                                                              .bttn_main.type_2
                                                              .qrcode2
                                                "
                                                :batchid="'follow_qr'"
                                                :idyun="idyun"
                                                :activeId="activeId"
                                                actType="5"
                                                @uploadAavatar="uploadAavatar"
                                            ></addPhoto>
                                        </div>
                                        <div class="img-but">
                                            <div class="but">
                                                <el-button
                                                    type="primary"
                                                    size="mini"
                                                    icon="el-icon-plus"
                                                    @click="
                                                        replaceImg(
                                                            form.set_advc
                                                                .bttn_main
                                                                .type_2
                                                                .typeto == 1
                                                                ? form.set_advc
                                                                      .bttn_main
                                                                      .type_2
                                                                      .qrcode1[0]
                                                                      .url
                                                                : form.set_advc
                                                                      .bttn_main
                                                                      .type_2
                                                                      .qrcode2[0]
                                                                      .url,
                                                            'follow_qr'
                                                        )
                                                    "
                                                    >上传二维码</el-button
                                                >
                                            </div>
                                        </div>
                                    </div>
                                </el-form-item>
                            </div>
                        </div>

                        <el-form-item
							:id="'info_it'"
                            label="技术支持"
                            :label-width="labelWidth"
							:class="highlight_i === 'info_it'  ? 'highlight': ''"
                        >
                            <el-radio v-model="form.isit" label="1" @change="setMoreData()"
                                >开启</el-radio
                            >
                            <el-radio v-model="form.isit" label="2" @change="setMoreData()"
                                >关闭</el-radio
                            >
                        </el-form-item>
                        <el-form-item
                            label="页面加载图片"
                            :label-width="labelWidth"
                        >
                            <el-radio v-model="ymjztpradio" label="1"
                                >默认
                            </el-radio>

                            <el-radio v-model="ymjztpradio" label="2"
                                >自定义
                            </el-radio>
                            <el-form-item v-show="ymjztpradio == 2">
                                <div class="img-context gj-box">
                                    <div class="img-box">
                                        <addPhoto
                                            ref="AddPhotoLoadimg"
                                            :pList="form.loading"
                                            :batchid="'load_img'"
                                            :idyun="idyun"
                                            :activeId="activeId"
                                            actType="5"
                                            @uploadAavatar="uploadAavatar"
                                        ></addPhoto>
                                    </div>
                                    <div class="img-but">
                                        <div class="but">
                                            <el-button
                                                type="primary"
                                                size="mini"
                                                icon="el-icon-plus"
                                                @click="
                                                    replaceImg(
                                                        form.loading[0].url,
                                                        'load_img'
                                                    )
                                                "
                                                >上传替换</el-button
                                            >
                                        </div>
                                        <div class="tis">
                                            请上传jpg, bmp, png, gif格式的图片
                                        </div>
                                    </div>
                                </div>
                            </el-form-item>
                        </el-form-item>
                        <div class="module-title">分享设置</div>
                        <el-form-item
                            label="分享活动"
                            :label-width="labelWidth"
                        >
                            <el-radio
                                v-model="form.set_advc.share.isopen"
                                label="1"
                                >开启分享
                            </el-radio>

                            <el-radio
                                v-model="form.set_advc.share.isopen"
                                label="2"
                                >关闭分享
                            </el-radio>
                        </el-form-item>
                        <div v-show="form.set_advc.share.isopen == 1">
                            <el-form-item
                                label="分享至朋友圈"
                                :label-width="labelWidth"
                            >
                                <el-radio
                                    v-model="form.set_advc.share.is2quan"
                                    label="1"
                                    >开启
                                </el-radio>
                                <el-radio
                                    v-model="form.set_advc.share.is2quan"
                                    label="2"
                                    >关闭
                                </el-radio>
                            </el-form-item>
                            <el-form-item
								:id="active_act.edidShareImg"
                                label="分享图标"
                                :label-width="labelWidth"
								:class="
								    highlight_i === active_act.edidShareImg
								        ? 'highlight'
								        : ''
								"
                            >
                                <el-radio v-model="fxtbradio" label="1"
                                    >默认
                                </el-radio>

                                <el-radio v-model="fxtbradio" label="2"
                                    >自定义
                                </el-radio>
                                <el-form-item v-show="fxtbradio == 2">
                                    <div class="img-context gj-box">
                                        <div class="img-box">
                                            <addPhoto
                                                ref="AddPhotoShareicon"
                                                :pList="form.set_advc.share.img"
                                                :batchid="'share_icon'"
                                                :idyun="idyun"
                                                :activeId="activeId"
                                                actType="5"
                                                @uploadAavatar="uploadAavatar"
                                            ></addPhoto>
                                        </div>
                                        <div class="img-but">
                                            <div class="but">
                                                <el-button
                                                    type="primary"
                                                    size="mini"
                                                    icon="el-icon-plus"
                                                    @click="
                                                        replaceImg(
                                                            form.set_advc.share
                                                                .img[0].url,
                                                            'share_icon'
                                                        )
                                                    "
                                                    >上传替换</el-button
                                                >
                                            </div>
                                            <div class="tis">
                                                请上传jpg, bmp, png,
                                                gif格式的图片
                                            </div>
                                        </div>
                                    </div>
                                </el-form-item>
                            </el-form-item>
                            <el-form-item
								:id="active_act.edidShareContext"
                                label="分享内容"
                                :label-width="labelWidth"
								:class="
								    highlight_i === active_act.edidShareContext
								        ? 'highlight'
								        : ''
								"
                            >
                                <div class="df-form-content">
                                    <div>
                                        <el-radio v-model="fxnrradio" label="1"
                                            >默认
                                        </el-radio>

                                        <el-radio v-model="fxnrradio" label="2"
                                            >自定义
                                        </el-radio>
                                    </div>
                                    <div class="but-tj" v-show="fxnrradio == 2">
                                        <el-dropdown
                                            slot="suffix"
                                            trigger="click"
                                            @command="setInsertFun"
                                        >
                                            <el-button
                                                size="mini"
                                                type="primary"
                                                >插入</el-button
                                            >
                                            <el-dropdown-menu slot="dropdown">
                                                <el-dropdown-item
                                                    v-for="(
                                                        item, index
                                                    ) in insert_data"
                                                    :key="index"
                                                    :command="item"
                                                    >{{
                                                        item.title1
                                                    }}</el-dropdown-item
                                                >
                                            </el-dropdown-menu>
                                        </el-dropdown>
                                        <el-dropdown
                                            slot="suffix"
                                            trigger="click"
                                            @command="setCopywritingFun"
                                        >
                                            <el-button size="mini"
                                                >推荐文案</el-button
                                            >
                                            <el-dropdown-menu slot="dropdown">
                                                <el-dropdown-item
                                                    v-for="(
                                                        item, index
                                                    ) in copywriting_data"
                                                    :key="index"
                                                    :command="item"
                                                    >{{
                                                        item.title
                                                    }}</el-dropdown-item
                                                >
                                            </el-dropdown-menu>
                                        </el-dropdown>
                                    </div>
                                </div>
                                <el-form-item v-show="fxnrradio == 2">
                                    <el-input
                                        type="textarea"
                                        :autosize="{
                                            minRows: 4,
                                            maxRows: 10,
                                        }"
                                        placeholder="请输入分享内容"
                                        v-model="form.set_advc.share.txt"
										@input="sendoutEidt(active_act.edidShareContext)"
                                    >
                                    </el-input>
                                </el-form-item>
                            </el-form-item>
                        </div>
                    </div>
                </el-tab-pane>
            </el-tabs>
        </el-form>
        <div class="but-box">
            <el-button type="primary" @click="previewPubFun"
                >预览与发布</el-button
            >
            <el-button type="primary" @click="submitFun">保存</el-button>
            <el-button>退出编辑</el-button>
        </div>
        <!-- 活动详情弹框 -->
        <el-drawer
            title="活动详情"
            :visible.sync="is_drawer_activity"
            class="drawer-box"
        >
            <popEventDetails
                ref="popEventDetails1"
                :dom_type="1"
                :form="form.info_txt"
                :idyun="idyun"
                :is_drawer="is_drawer_activity"
                :activeId="activeId"
            ></popEventDetails>
        </el-drawer>
        <!-- 产品介绍弹框 -->
        <el-drawer
            title="产品介绍"
            :visible.sync="is_drawer_good"
            class="drawer-box"
            @close="sendoutgoodEidt(goods_act.editGoodsDesc)"
        >
            <popEventDetails
                ref="popEventDetails2"
                :dom_type="2"
                :form="good_info"
                :idyun="idyun"
                :is_drawer="is_drawer_good"
                :activeId="activeId"
            ></popEventDetails>
        </el-drawer>
        <!-- 广告首图弹框 -->
        <el-drawer
            title="图片广告页详情"
            :visible.sync="is_drawer_ad"
            class="drawer-box"
            @close="sendoutEidt(active_act.adverPagePic)"
        >
            <popAdvertisement
                ref="popAdvertisement"
                :form="form.ad_ls"
                :idyun="idyun"
                :is_drawer="is_drawer_ad"
                :activeId="activeId"
            ></popAdvertisement>
        </el-drawer>
        <!-- 地图选点 -->
        <popMappointSelection ref="popMappointSelection" @bmapText="bmapText"></popMappointSelection>
        <!-- 可参与地区 -->
        <popParticipatingRegions
            ref="popParticipatingRegions"
            :form="form"
        ></popParticipatingRegions>
        <!-- 密码管理 -->
        <popPasswordSet ref="popPasswordSet" :form="form"></popPasswordSet>
        <!-- 联系信息 -->
        <popContactinfo ref="popContactinfo" :form="form" @gdidlsChange="gdidlsChange"></popContactinfo>
        <!-- 主办单位信息编辑 -->
        <popOrganizerEdit
            ref="popOrganizerEdit"
            :form="form"
            :yun_list="yun_list"
        ></popOrganizerEdit>
        <!-- 预览与发布 -->
        <popPreviewpublishing ref="popPreviewpublishing"></popPreviewpublishing>
        <!-- 图片裁剪 -->
        <imageCropper
            v-if="!is_drawer_activity && !is_drawer_ad && !is_drawer_good"
            ref="imageCropper"
            :src="editUrl"
            @confirm="confirm"
            @cancel="cancel"
        >
        </imageCropper>
		<popPrepublishing ref="popPrepublishing" ></popPrepublishing>
    </div>
</template>
<script>
import activitySettings from "@/mixins/activitySettings.vue";
export default {
    mixins: [activitySettings],
};
</script>
<style lang="scss" scoped>
.activity-settings {
    background: #fff;
    height: 100%;
    font-size: 14px;
    position: relative;
    ::v-deep.el-tabs {
        height: 100%;

        .el-tabs__nav-scroll {
            padding: 0 10px;
        }

        .el-tabs__item {
            font-size: 18px;
        }
    }

    .highlight {
        padding: 5px;
        box-shadow: rgb(245, 154, 35) 0px 0px 20px;
    }
    ::v-deep.el-form {
        height: calc(100% - 60px);
        .tis-icon {
            margin-left: 5px;
        }
        .tis-shipp {
            color: #999;
            margin-left: 10px;
            font-size: 12px;
        }
        .set-population {
            color: #3989fc;
            cursor: pointer;
            margin-left: 10px;
            &.cha-sl {
                margin: 0;
            }
        }
        .el-radio {
            &.is-checked {
                .el-radio__label {
                    color: #606266;
                }
            }
        }
        .tab-box {
            height: calc(100vh - 170px);
            padding: 0 10px;
            .el-tabs__content {
                overflow: inherit;
            }
            &.good-tab-box {
                position: relative;
                .el-tabs__header {
                    padding-right: 100px;
                }
                .good-add-box {
                    position: absolute;
                    top: 5px;
                    right: 10px;
                    z-index: 999;
                    .el-button--mini {
                        padding: 7px 10px;
                    }
                }
            }
            .tis {
                font-size: 12px;
                color: #999;
                line-height: 20px;
            }
            .module-title {
                padding-bottom: 10px;
                border-bottom: 1px solid #797979;
                margin-bottom: 20px;
            }
            .input-w {
                i {
                    font-size: 18px;
                    font-weight: bold;
                    color: #000;
                    cursor: pointer;
                }
            }
            .inpit-xz {
                width: 60px;
                margin: 0 5px;
            }
            .radio-mr {
                margin-right: 58px;
            }
            .txt-xg {
                margin-left: 20px;
            }
            .text-lr {
                margin: 0 10px;
            }
            .label-title {
                .title {
                    // margin-right: 5px;
                }
                .stars {
                    color: #f56c6c;
                    margin-right: 3px;
                }
            }
            .txt-left {
                .el-form-item__label {
                    text-align: left;
                }
            }
            .sessions-row {
                max-width: 516px;
                .sessions-title {
                    span {
                        margin-right: 5px;
                    }
                    .status {
                        padding: 2px 10px;
                        border-radius: 30px;
                        background: #ea7f8e;
                        color: #fff;
                        &.acitve {
                            background: #eab468;
                        }
                    }
                }
                .sessions-info {
                    border-radius: 5px;
                    background: #f2f2f2;
                    padding: 20px;
                    border: 1px solid #d7d7d7;
                    .date-box {
                        margin-bottom: 10px;
                        width: 100%;
                    }
                    .good-box {
                        display: flex;
                        flex-wrap: wrap;
                        margin-bottom: 10px;
                        .good-row {
                            margin-bottom: 10px;
                            padding: 0 10px;
                            border: 1px solid #d7d7d7;
                            border-radius: 3px;
                            margin-right: 10px;
                            line-height: 30px;
                            &:last-child {
                                margin-right: 0;
                            }
                        }
                    }
                }
            }
            .hide-required {
                .el-form-item__label {
                    &::before {
                        display: none;
                    }
                }
            }
            .img-context {
                display: flex;
                align-content: flex-end;
                &.gj-box {
                    border-radius: 5px;
                    border: 1px solid #d7d7d7;
                    padding: 10px;
                }
                .img-box {
                    width: 100px;
                    height: 100px;
                    margin-right: 20px;
                    .uploader-box {
                        margin: 0;
                    }
                }
                .img-but {
                    .tis {
                        margin-top: 20px;
                        font-size: 12px;
                        color: #999;
                    }
                }
            }
            .df-form-content {
                display: flex;
                justify-content: space-between;
                .but-tj {
                    // margin-left: 20px;
                    .el-dropdown {
                        margin-left: 10px;
                    }
                }
            }
        }
    }
    .but-box {
        position: absolute;
        left: 0;
        bottom: 0;
        background: #e6e6e6;
        width: calc(100% - 10px);
        padding: 10px 0;
        padding-right: 10px;
        // padding-bottom: 15px;
        text-align: right;
    }
}
</style>
    <style lang="scss">
.popover-title {
    border-bottom: 1px solid #797979;
    padding-bottom: 5px;
}
.popover-good-box {
    margin: 10px 0;
}
</style>